<?php

/**
 * @author gencyolcu
 * @copyright 2014
 */
 /**
 * @desc Intreface Classes
 */
interface IMeal{
   public function AddMeal();
   public function DropMeal();
   public function EditMeal(); 
   public function CalculateMealCalories();
   public function CalculateMealPrice();
   public function GetMealInformation();
} 

interface IIngredient{
   public function AddIngredient();
   public function RemoveIngredient();
   public function EditIngredient(); 
   public function GetIngredientInformation();
}

interface IPerson{
   public function Register();
   public function Login();
}

interface IAdmin
{
   public function AddMeal();
   public function RemoveMeal();
   public function EditMeal();
}
interface ICustomer
{
   public function MakeOrder();
}
interface IRecipt
{
   public function RecordRecipt();
   public function EditRecipt();
   public function GetReciptInformation();
}

/**
 *@desc Main Classes
 */
class Meal{
   private $mealId;
   private $mealName;
   private $Ingredient;
   protected function AddMeal(){}
   protected function DropMeal(){}
   protected function EditMeal(){}
   public function CalculateMealCalories(){}
   public function CalculateMealPrice(){}
   public function GetMealInformation(){} 
} 

class Ingredient{
   private $ingredientId;
   private $ingredientName;
   private $ingredientCost;
   private $ingredientCalories;
   private $ingredientNessary;
   protected function AddIngredient(){}
   protected function RemoveIngredient(){}
   protected function EditIngredient(){}
   public function GetIngredientInformation(){}
}

class Person
{
  protected $Id;
  protected $Name;
  protected $Password;
  protected $Type;
  protected $Address;
  protected $Mobile;
  protected function Register(){}
  protected function Login(){}
}

class Admin extends Person
{
   public function AddMeal(){}
   public function RemoveMeal(){}
   public function EditMeal(){}
}

class Customer extends Person
{
   public function MakeOrder(){}
}

class Recipt
{
   private $reciptId;
   private $customertId;
   private $reciptDate;
   private $totalCalories;
   private $totalPrice;
   protected function RecordRecipt(){}
   protected function EditRecipt(){}
   public function GetReciptInformation(){}
}
